package myPackage;
import java.io.File;
import java.util.Scanner;
public class Tree {
  public static void main(String args[])  {
	  System.out.println("Input path");
	  
	  Scanner vvod=new Scanner(System.in);
	  String dirname;
	  dirname= vvod.nextLine();	
	  list(dirname);
  }
  static void list(String Dir)
  {
    int i;
    File f = new File(Dir);
      
    String[] Dirlist = f.list();
    System.out.println(Dir);  
    
    for(i = 0; i < Dirlist.length; i++)
    {
    	File f1 = new File(Dir + File.separator + Dirlist[i]);
      
      if(f1.isFile()){
    	  System.out.println("\t" + File.separator + Dirlist[i]);
      }
      else  
      {
    	  list(Dir + File.separator + Dirlist[i]);
      }	
    }
  }
}